﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebShopData;

namespace WebShop_Project
{
    public class ShoppingCartItem
    {
        public Article Article { get; set; }
        public int Quantity { get; set; }

        public ShoppingCartItem(Article article, int quantity = 1)
        {
            Article = article;
            Quantity = quantity;
        }
        public override string ToString()
        {

            return string.Format("Artikelnamn: {0} Pris: {1} Antal: {2}",Article.ArticleName,Article.UnitPrice, Quantity);
        }
    }
}